package com.mordenx.service;

import com.mordenx.dao.SecKillingUserDao;
import com.mordenx.entity.SecKillingUser;
import com.mordenx.vo.user.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SecKillingUserService {
    @Autowired
    SecKillingUserDao secKillingUserDao;

    public SecKillingUser queryById(int id){
        return secKillingUserDao.queryById(id);
    }
    public SecKillingUser queryByName(String name){
        return  secKillingUserDao.queryByName(name);
    }
    public void insertUser(SecKillingUser secKillingUser){
        secKillingUserDao.insertUser(secKillingUser);
    }
    public void updateUserById(SecKillingUser secKillingUser){
        secKillingUserDao.updateUserById(secKillingUser);
    }

    public List<SecKillingUser> queryUserByVo(UserVo userVo){
        return secKillingUserDao.queryUserByVo(userVo);
    }

    public void deleteUserById(int id){
        secKillingUserDao.deleteUserById(id);
    }

}
